'use strict';
define(function(require, exports, module) {

	function init(app) {
		app.config(function($stateProvider, $urlRouterProvider) {
			$stateProvider.state('register', {
				url: "/register",
				templateUrl: 'app/register/view/register.html',
				controller: function($scope) {
					require.async("./js/register", function(register) {
						register.controller(app, $scope);

						$scope.$apply();
					});

				}
			});
		});
	}

	exports.init = init;
});